// 积分管理
<template>
  <el-button
    class="fr-btn"
    @click="handleSet"
    v-hasPermi="['marketing:points:conf']"
    >规则设置</el-button
  >
  <el-tabs v-model="activeName" class="demo-tabs">
    <el-tab-pane label="学员积分" name="first">
      <Grant />
    </el-tab-pane>
  </el-tabs>
  <Rules ref="rulesRef" />
</template>

<script setup>
import Grant from "./grant.vue";
import Rules from "./rules.vue";
const rulesRef = ref(null);
const activeName = ref("first");

function handleSet() {
  rulesRef.value.openW();
}
</script>

<style lang="scss" scoped>
.fr-btn {
  position: absolute;
  z-index: 99;
  right: 20px;
}
</style>
